\begin{tikzpicture}[scale=0.4]
    \foreach \x in {0,3,6,9} {
        \foreach \y in {0,3,6,9} {
            \tkzDefPoints{\x/\y/A, \x+1/\y/B, \x+1/\y+1/C, \x/\y+1/D}
            \tkzFillPolygon[pattern={mylines[angle=45, distance={2pt}]}](A,B,C,D)
        }
    }

    \foreach \x in {0,1,3,4,6,7,9,10} {
        \tkzDefPoints{\x/0/X1, \x/10/X2}
        \tkzDrawSegments(X1,X2)
    }
    \foreach \y in {0,1,3,4,6,7,9,10} {
        \tkzDefPoints{0/\y/Y1, 10/\y/Y2}
        \tkzDrawSegments(Y1,Y2)
    }
\end{tikzpicture}

